package com.zmn.plat.dubbo.interfaces.orderconfig.returnvisitcontent;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.plat.common.dto.orderconfig.returnvisitcontent.ReturnVisitAnswerDIO;
import com.zmn.plat.common.dto.orderconfig.returnvisitcontent.ReturnVisitAnswerDRO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * 类描述:回访答案dubbo接口
 *
 * @auther: tanghongjun
 * @since: 2020年4月15日11:27:03
 */
@Api(value = "回访答案服务", tags = {"回访答案"})
public interface ReturnVisitAnswerListRemoteService {
    /**
     * 描述: 根据主键查询回访内容
     *
     * @param answerId
     * @return ReturnVisitAnswerDRO
     * @auther: tanghongjun
     * @since: 2020年4月15日11:27:03
     */
    @ApiOperation(value = "根据主键查询回访内容", response = ResponseDTO.class, notes = "", tags = {"回访答案"})
    ResponseDTO<ReturnVisitAnswerDRO> getById(@NotNull(message = "主键id不能为空") @Positive(message = "主键id必须为大于0的正整数") @ApiParam(value = "主键id", required = true) Integer answerId);

    /**
     * 描述: 根据条件查询回访内容
     *
     * @param returnVisitAnswerDIO
     * @return ReturnVisitAnswerDIO
     * @auther: tanghongjun
     * @since: 2020年4月15日11:27:03
     */
    @ApiOperation(value = "根据条件查询回访内容", response = ResponseDTO.class, notes = "", tags = {"回访答案"})
    ResponseDTO<List<ReturnVisitAnswerDRO>> listByQuery(@NotNull(message = "入参不能为空") @Valid @ApiParam(value = "查询条件", required = true) ReturnVisitAnswerDIO returnVisitAnswerDIO);
}
